// @ts-ignore
/* eslint-disable */
import { api } from "@/utils/api";

/** 新增安全-器材信息管理表数据 POST /safeEquipmentInventory/add */
export async function safeEquipmentInventoryAdd(
  body: BIZAPI.SafeEquipmentInventoryCreateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function safeEquipmentInventoryAdd(
  body: BIZAPI.SafeEquipmentInventoryCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function safeEquipmentInventoryAdd(
  body: BIZAPI.SafeEquipmentInventoryCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function safeEquipmentInventoryAdd(
  body: BIZAPI.SafeEquipmentInventoryCreateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/safeEquipmentInventory/add`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/safeEquipmentInventory/add`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除安全-器材信息管理表数据 POST /safeEquipmentInventory/delete */
export async function safeEquipmentInventoryDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function safeEquipmentInventoryDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function safeEquipmentInventoryDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function safeEquipmentInventoryDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/safeEquipmentInventory/delete`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/safeEquipmentInventory/delete`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取安全-器材信息管理表数据 POST /safeEquipmentInventory/get */
export async function safeEquipmentInventoryGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeEquipmentInventoryEntity>;

export async function safeEquipmentInventoryGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeEquipmentInventoryEntity>>;

export async function safeEquipmentInventoryGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeEquipmentInventoryEntity>;

export async function safeEquipmentInventoryGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeEquipmentInventoryEntity>(
      `/app/safeEquipmentInventory/get`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultSafeEquipmentInventoryEntity>(
    `/app/safeEquipmentInventory/get`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取安全-器材信息管理表VO数据 POST /safeEquipmentInventory/getVo */
export async function safeEquipmentInventoryGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeEquipmentInventoryResp>;

export async function safeEquipmentInventoryGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeEquipmentInventoryResp>>;

export async function safeEquipmentInventoryGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeEquipmentInventoryResp>;

export async function safeEquipmentInventoryGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeEquipmentInventoryResp>(
      `/app/safeEquipmentInventory/getVo`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultSafeEquipmentInventoryResp>(
    `/app/safeEquipmentInventory/getVo`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取安全-器材信息管理表分页数据 POST /safeEquipmentInventory/page */
export async function safeEquipmentInventoryPage(
  body: BIZAPI.SafeEquipmentInventoryQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeEquipmentInventoryEntity>;

export async function safeEquipmentInventoryPage(
  body: BIZAPI.SafeEquipmentInventoryQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeEquipmentInventoryEntity>>;

export async function safeEquipmentInventoryPage(
  body: BIZAPI.SafeEquipmentInventoryQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeEquipmentInventoryEntity>;

export async function safeEquipmentInventoryPage(
  body: BIZAPI.SafeEquipmentInventoryQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeEquipmentInventoryEntity>(
      `/app/safeEquipmentInventory/page`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageSafeEquipmentInventoryEntity>(
    `/app/safeEquipmentInventory/page`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 更新安全-器材信息管理表数据 POST /safeEquipmentInventory/update */
export async function safeEquipmentInventoryUpdate(
  body: BIZAPI.SafeEquipmentInventoryUpdateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function safeEquipmentInventoryUpdate(
  body: BIZAPI.SafeEquipmentInventoryUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function safeEquipmentInventoryUpdate(
  body: BIZAPI.SafeEquipmentInventoryUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function safeEquipmentInventoryUpdate(
  body: BIZAPI.SafeEquipmentInventoryUpdateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/safeEquipmentInventory/update`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/safeEquipmentInventory/update`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取安全-器材信息管理表VO分页数据 POST /safeEquipmentInventory/voPage */
export async function safeEquipmentInventoryVoPage(
  body: BIZAPI.SafeEquipmentInventoryQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeEquipmentInventoryResp>;

export async function safeEquipmentInventoryVoPage(
  body: BIZAPI.SafeEquipmentInventoryQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeEquipmentInventoryResp>>;

export async function safeEquipmentInventoryVoPage(
  body: BIZAPI.SafeEquipmentInventoryQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeEquipmentInventoryResp>;

export async function safeEquipmentInventoryVoPage(
  body: BIZAPI.SafeEquipmentInventoryQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeEquipmentInventoryResp>(
      `/app/safeEquipmentInventory/voPage`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageSafeEquipmentInventoryResp>(
    `/app/safeEquipmentInventory/voPage`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
